package com.jader.fragment;

import com.jader.util.JaderApplication;
import com.zlp.jader.R;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

@SuppressLint("ValidFragment")
public class Goods_PictrueFragment extends Fragment {

	private String picture;

	@SuppressLint("ValidFragment")
	public Goods_PictrueFragment(String picture) {

		this.picture = picture;
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {

		View view = LayoutInflater.from(getActivity()).inflate(
				R.layout.goods_pic_item, null);
		initView(view);
		return view;
	}

	private void initView(View view) {
		ImageView imageView = (ImageView) view
				.findViewById(R.id.goods_pic_item);
		JaderApplication.getBitmapUtils().display(imageView,
				JaderApplication.getIP()+"/Jader" + picture);

	}

}
